package com.aya.ite.base;

public class Waitress {
    Dinner dinner;
    PancakeHouse pancakeHouse;

    public Waitress(PancakeHouse pancakeHouse,Dinner dinner) {
        this.dinner = dinner;
        this.pancakeHouse = pancakeHouse;
    }

    public void printMenu(){
        System.out.println("pancake menu");

        for(MenuItem menuItem: pancakeHouse.getMenu()){
            System.out.print(menuItem.getName()+"\t");
            System.out.print(menuItem.getDescription()+"\t");
            System.out.print(menuItem.getPrice()+"\t");
            System.out.print(menuItem.getVegetarian()+"\n");
        }

        System.out.println("dinner menu");

        for(MenuItem menuItem: dinner.getMenu()){
            if(menuItem == null){
                break;
            }
            System.out.print(menuItem.getName()+"\t");
            System.out.print(menuItem.getDescription()+"\t");
            System.out.print(menuItem.getPrice()+"\t");
            System.out.print(menuItem.getVegetarian()+"\n");
        }

    }
}
